#pragma once
#include <functional>
#include <unistd.h>
#include "log.hpp"
using task_t=std::function<void()>;
void download()
{
    MY::LOG(MY::logLevel::INFO)<<"a download task is running";
    sleep(3);
}